package framework.jiekou;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;

public interface ViewSetting {

	public Context getContext();

	public void setContext(Context context);

	public View inflate(int resourceId);

	public void layoutSetting(ViewGroup ll);

	public void measureView(View child);

	public void adjustTextView(TextView tv);

	public void setImageView(ImageView imageView, String url, int defaultId);

	public int layoutAdjustSize(int getW);

	public Float layoutAdjustSize(Float getW);

	public int adjustSize(int ori);

	public int getScreenWidth();

	public int getScreenHight();

	public int getDesignWidth();

	public float getDensity();

	public void viewShowOrHidden(View view);

	public boolean isVisible(View view);

	public void viewVisible(View view, boolean isVisible);

	public void viewVisible(View view, int id, boolean isVisible);

	public void viewShow(int id, View itemView);

	public void viewShow(View view);

	public void viewGone(int id, View itemView);

	public void viewGone(View view);

	public LinearLayout findLinearLayoutById(int id, View view);

	public ListView findListViewById(int id, View view);

	public Button findButtonById(int id, View view);

	public ProgressBar findProgressBarById(int id, View view);

	public ImageView findImageViewById(int id, View view);

	public RelativeLayout findRelativeLayoutById(int id, View view);

	public TextView findTextViewById(int id, View view);

	public CheckBox findCheckBoxById(int id, View view);

	public FrameLayout findFrameLayoutById(int id, View view);

	public ImageButton findImageButtonById(int id, View view);

	public EditText findEditTextById(int id, View view);

	public void log(String msg);

	public void log(Object msg);

	public void isNull(String name, Object obj);

	public void exception(Exception e);
	
	public void setText(TextView tv, String str);

	public void setText(TextView tv, Object obj);

}
